package com.zenithmind.library.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.time.LocalDate;

/**
 * 归还图书DTO
 * 
 * @author ZenithMind
 * @since 2024-06-14
 */
@Data
@Schema(name = "归还图书DTO", description = "归还图书时的数据传输对象")
public class ReturnBookDTO {

    @NotBlank(message = "借阅记录ID不能为空")
    @Schema(description = "借阅记录ID", example = "1", required = true)
    private String borrowRecordId;

    @Schema(description = "实际归还日期（可选，默认当前日期）", example = "2024-07-10")
    private LocalDate returnDate;

    @Schema(description = "图书状况 (0-完好, 1-轻微损坏, 2-严重损坏, 3-丢失)", example = "0")
    private Integer bookCondition;

    @Schema(description = "归还备注", example = "图书完好归还")
    private String returnRemarks;

    @Schema(description = "操作员ID", example = "admin")
    private String operatorId;
}
